package com.hzy.fivepalace.db.service;

import com.hzy.fivepalace.db.dao.DtsWxConfigMapper;
import com.hzy.fivepalace.db.domain.DtsWxConfig;
import com.hzy.fivepalace.db.domain.DtsWxConfigExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class WxConfigService {

    @Resource
    private DtsWxConfigMapper dtsWxConfigMapper;

    /**
     * 获取微信配置 信息
     * @return
     */
    public DtsWxConfig getWxConfig(){
        DtsWxConfigExample example=new DtsWxConfigExample();
        example.setOrderByClause("id desc");
       return dtsWxConfigMapper.selectOneByExample(example);
    }
}
